#pragma once
#include <string>

#include "mprpcconfig.h"
//mprpc框架的初始化类
class MprpcApplication
{
public:
    //获取单例对象的接口函数
    static MprpcApplication& GetInstance();

    //初始化mprpc框架的接口函数
    static void Init(int argc, char **argv);

    //获取配置项
    static MprpcConfig& GetConfig();

private:
    static MprpcConfig m_config;
    MprpcApplication() {}
    MprpcApplication(const MprpcApplication&) =delete;
    MprpcApplication(MprpcApplication &&) = delete;
};